package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.Address;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 企业地址表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-21
 */
@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    int insert(Address row);

    List<Address> selectAll();

    List<Address> selectAllByCompanyId(int companyId);

    int delByCompanyIdInt(Address address);

    int delByAddressName(Address address);

    int updateByOldAddressName(@Param("address") Address address, @Param("oldName") String oldAddressName);

    List<Address> selectByKeyWord(String keyWord);
}
